<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
</style>
<title>Changes In Last Two Weeks</title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<link type="text/css" href="/css/start/jquery-ui-1.8.21.custom.css" rel="Stylesheet" />	
<link type="text/css" href="/css/1pxtable.css" rel="Stylesheet" />	
<script type="text/javascript" src="/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="/js/jquery-ui-1.8.21.custom.min.js"></script>
<script>

</script>
</head>

<body>
<h1>Changes In Last Two Weeks</h1><br/>
<hr width=100% size=1></hr>
<h2>Change Type</h2><br />
<table width="800" border="1" cellspacing="0" cellpadding="10">
  <tr>
    <th scope="col">ID</th>
    <th scope="col">Staff</th>
    <th scope="col">Old Type</th>
    <th scope="col">New Type</th>
    <th scope="col">Date</th>
  </tr>
<?php foreach($this->typeList as $kt => $vt){?>  
  <tr>
    <td><?php echo $vt['id_staff']?></td>
    <td><?php echo $vt['first_name']." ".$vt['last_name']?></td>
    <td><?php echo chr(64 + $vt['old_id_package'])?></td>
    <td><?php echo chr(64 + $vt['id_package'])?></td>
    <td><?php echo $vt['new_package_date']?></td>
  </tr>
<?php }?>  
</table>
<h2><br />
  Change Rate<br />
</h2>
<table width="800" border="1" cellspacing="0" cellpadding="10">
  <tr>
    <th scope="col">ID</th>
    <th scope="col">Staff</th>
    <th scope="col">Old Rate</th>
    <th scope="col">New Rate</th>
    <th scope="col">Date</th>
  </tr>
  
<?php foreach($this->rateList as $kr => $vr){?>  
  <tr>
    <td><?php echo $vr['id_staff']?></td>
    <td><?php echo $vr['first_name']." ".$vr['last_name']?></td>
    <td><?php echo $vr['old_rate']?></td>
    <td><?php echo $vr['new_rate']?></td>
    <td><?php echo $vr['new_rate_date']?></td>
  </tr>
<?php }?> 
  
  
</table>
<p>&nbsp; </p>
<h2>Leave , FinalPayment<br />
</h2>
<table width="800" border="1" cellspacing="0" cellpadding="10">
  <tr>
    <th scope="col">ID</th>
    <th scope="col">Staff</th>
    <th scope="col">Leave Date</th>
    <th scope="col">SET TO LEFT</th>
  </tr>
<?php foreach($this->leaveList as $kl => $vl){?>  
  <tr>
    <td><?php echo $vl['id_staff']?></td>
    <td><?php echo $vl['first_name']." ".$vl['last_name']?></td>
    <td><?php echo $vl['leave_date']?></td>
    <td><?php  echo ($vl['leave']==9)?"YES":"NO"; ?></td>
  </tr>
<?php }?> 
</table>
<p>&nbsp; </p>
<div id = "payrollWizard" <?php if(!$this->nextCheck){?>style = "visibility:hidden;<?php }?>">
<input type = "checkbox" name = "checkbox" id = "checkbox" onchange = "dataCheck()">I have fully read and understanding</input>
<input type = "submit" name = "next" id = "next" value = "Next" style= "margin-left:500px;" onclick="window.open('http://<?php echo SERVER_IP_COMM?>/rosteraudit/offline-attendance/date_begin/2014-06-09/date_end/2014-06-20/next/yes')"></input>
</div>
</body>
</html>
